package polsl.hd.strumieniowa;

import java.util.Calendar;
import java.util.Random;
import java.util.Date;
import java.util.Random;
import java.util.List;
import java.sql.*;

public class Main {

	public static void main(String[] args) {
		try {
			start();
			System.out.println("Nie polecial wyjatek");
		} catch (Exception e) {
			System.out.println("Nie bedziemy juz przetwarzac");
		}
		return;
	}

	public static void start() {
		Calendar cal = Calendar.getInstance();
		cal.setTime(new Date());
		Date date2 = (Date)cal.getTime();
		System.out.println("Wyswietlamy: ");
		System.out.println(date2);
		System.out.println(new Date());
		Date d4 = cal.getTime();		//System.out.println(date2.compareTo(new Date()));
		
		if(a>0) 
			return true;
		else
			return false;
		if(a>0) 
			return true;
		else
			return false;
		Date d4 = cal.getTime();		
		while(true) {
			int a = 2;
			Krotka krotka = Generator.losuj();
			//if(date2.compareTo(new Date()) <= 0) {
				//System.out.println(a);
				return;
			//}
		}
		return false;
	}
}
